package com.sc.nft.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class CurrentPriceVO {
    @ApiModelProperty(value = "当前价格")
    private String currentPrice;

    public void setCurrentPrice(BigDecimal currentPrice) {
        this.currentPrice = currentPrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
}
